package com.qqonline.mpf;

import com.qqonline.conmon.DATA;
import com.qqonline.conmon.MPFApp;
import com.qqonline.conmon.getUrlResponse;

public class getIsPlay implements Runnable {
	private MPFApp mApp;
	public getIsPlay(MPFApp mApp) {
		this.mApp = mApp;
	}

	@Override
	public void run() {
		String arr;
		try {
			arr = getUrlResponse.postUtfString(DATA.adsIsPlayUrl);
			if(arr.equals("true"))
				mApp.setAdsIsPlay(true);
			else
				mApp.setAdsIsPlay(false);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
